import request from '../utils/request';
import md5 from 'js-md5';
const today = md5('2020');
const prefix = '//www.ayouleyang.cn';
console.log(today);
const fetchData = query => {
    return request({
        url: './table.json',
        method: 'get',
        params: query
    });
};

const adminList = query => {
    return request({
        url: prefix + '/tools/market/adminlist',
        method: 'post',
        params: query
    });
};

const duanxinList = query => {
    return request({
        url: prefix + '/tools/market/duanxinlist',
        method: 'post',
        params: query
    });
};

const majorList = query => {
    return request({
        url: prefix + '/tools/market/majorlist',
        method: 'post',
        params: query
    });
};

const appList = query => {
    return request({
        url: prefix + '/tools/market/applist',
        method: 'post',
        params: query
    });
};

const domainlist = query => {
    return request({
        url: prefix + '/tools/domain/dnslist',
        method: 'post',
        params: query
    });
};

const iclist = query => {
    return request({
        url: prefix + '/tools/market/iclist',
        method: 'post',
        params: query
    });
};

const photoslist = query => {
    return request({
        url: prefix + '/tools/market/photoslist',
        method: 'post',
        params: query
    });
};

export default {
	fetchData,adminList,duanxinList,majorList,appList,domainlist,iclist,photoslist
}
